package icu.qx.wm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import icu.qx.wm.mapper.GbsGoodMapper;
import icu.qx.wm.domain.GbsGood;
import icu.qx.wm.service.IGbsGoodService;

/**
 * 产品库存Service业务层处理
 *
 * @author alize
 * &#064;date  2024-06-14
 */
@Service
public class GbsGoodServiceImpl implements IGbsGoodService {
    private final GbsGoodMapper gbsGoodMapper;

    @Autowired
    public GbsGoodServiceImpl(GbsGoodMapper gbsGoodMapper) {
        this.gbsGoodMapper = gbsGoodMapper;
    }

    /**
     * 查询产品库存列表
     *
     * @param gbsGood 产品库存
     * @return 产品库存
     */
    @Override
    public List<GbsGood> selectGbsGoodList(GbsGood gbsGood) {
        return gbsGoodMapper.selectGbsGoodList(gbsGood);
    }

    /**
     * 查询产品编号
     */
    @Override
    public List<Map<String, String>> selectGbsGoodCode(String isMaterial) {
        return gbsGoodMapper.selectGbsGoodCode(isMaterial);
    }
}
